import request from '@/utils/request'
export default{
    // 添加小节
    addVideo(video){
        return request({
            url:'eduservice/video/addVideo',
            method:'post',
            data:video
        })
    },
    // 删除小节
    deleteVideo(videoId){
        return request({
            url:`eduservice/video/deleteVideo/${videoId}`,
            method:'delete'
        })
    },
    // 更新小节
    updateVideo(video){
        return request({
            url:`eduservice/video/updateVideo`,
            method:'put',
            data:video
        })
    },
    // 根据小节Id获取小节
    getVideo(videoId){
        return request({
            url:`eduservice/video/getVideo/${videoId}`,
            method:'get'
        })
    },
    // 根据小节视频id移除小节
    removeVideoFile(id){
        return request({
            url:`eduvod/filevod/deleteVod/${id}`,
            method:'delete'
        })
    }
}